Platform Explorer / Nuxeo Platform 2023.19

Contribution org.nuxeo.ecm.platform.audit.web--actions

This contribution is part of XML component org.nuxeo.ecm.platform.audit.web inside nuxeo-platform-audit-client-2023.19.6.jar /OSGI-INF/actions-contrib.xml

Documentation

Contribute a new action related to document history.

Extension Point

Extension point actions of component ActionService.

Registration Order

9
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <action enabled="true" icon="/icons/file.gif" id="TAB_CONTENT_HISTORY" label="action.view.history" link="/incl/tabs/document_history.xhtml" order="100" type="rest_document_link">
          <category>VIEW_ACTION_LIST</category>
          <filter-id>TAB_CONTENT_HISTORY_has_subtabs</filter-id>
        </action>
  • <action enabled="true" icon="/icons/file.gif" id="TAB_EVENTS" label="action.view.events" link="/incl/tabs/document_events_cv.xhtml" order="50" type="rest_document_link">
          <category>TAB_CONTENT_HISTORY_sub_tab</category>
          <filter-id>view_content_history</filter-id>
        </action>
  • <action enabled="true" icon="/icons/file.gif" id="TAB_EVENTS_PROXY" label="action.view.events" link="/incl/tabs/document_events_cv.xhtml" order="50" type="rest_document_link">
          <category>TAB_CONTENT_HISTORY_sub_tab</category>
          <filter-id>view_proxy_history</filter-id>
          <filter-id>only_for_manager</filter-id>
        </action>
  • <action enabled="true" icon="/icons/file.gif" id="TAB_VERSIONS" label="action.view.versions" link="/incl/tabs/document_versions.xhtml" order="100" type="rest_document_link">
          <category>TAB_CONTENT_HISTORY_sub_tab</category>
          <filter-id>versionable</filter-id>
        </action>
  • <action id="VIEW_VERSION" label="command.viewArchivedVersion" link="#{versionedActions.viewArchivedVersion}" order="10">
          <category>VERSION_LIST_ITEM</category>
        </action>
  • <action id="RESTORE_VERSION" label="command.restore" link="#{versionedActions.restoreToVersion}" order="20">
          <category>VERSION_LIST_ITEM</category>
          <filter-id>canRestoreVersion</filter-id>
          <filter-id>canRestoreMainBlob</filter-id>
        </action>
  • <action confirm="if( !confirmDeleteDocuments() ) return false;" id="CURRENT_VERSION_SELECTION_DELETE" label="command.removeSelectedArchivedVersions" link="#{versionedActions.removeSelectedArchivedVersions}" order="10">
          <category>CURRENT_VERSION_SELECTION_LIST</category>
          <filter-id>canDeleteCurrentVersionSelection</filter-id>
        </action>

XML Source

<extension point="actions" target="org.nuxeo.ecm.platform.actions.ActionService">
    <documentation>
      Contribute a new action related to document history.
    </documentation>

    <action enabled="true" icon="/icons/file.gif" id="TAB_CONTENT_HISTORY" label="action.view.history" link="/incl/tabs/document_history.xhtml" order="100" type="rest_document_link">
      <category>VIEW_ACTION_LIST</category>
      <filter-id>TAB_CONTENT_HISTORY_has_subtabs</filter-id>
    </action>

    <action enabled="true" icon="/icons/file.gif" id="TAB_EVENTS" label="action.view.events" link="/incl/tabs/document_events_cv.xhtml" order="50" type="rest_document_link">
      <category>TAB_CONTENT_HISTORY_sub_tab</category>
      <filter-id>view_content_history</filter-id>
    </action>

    <action enabled="true" icon="/icons/file.gif" id="TAB_EVENTS_PROXY" label="action.view.events" link="/incl/tabs/document_events_cv.xhtml" order="50" type="rest_document_link">
      <category>TAB_CONTENT_HISTORY_sub_tab</category>
      <filter-id>view_proxy_history</filter-id>
      <filter-id>only_for_manager</filter-id>
    </action>

    <action enabled="true" icon="/icons/file.gif" id="TAB_VERSIONS" label="action.view.versions" link="/incl/tabs/document_versions.xhtml" order="100" type="rest_document_link">
      <category>TAB_CONTENT_HISTORY_sub_tab</category>
      <filter-id>versionable</filter-id>
    </action>

    <!-- Version actions -->
    <action id="VIEW_VERSION" label="command.viewArchivedVersion" link="#{versionedActions.viewArchivedVersion}" order="10">
      <category>VERSION_LIST_ITEM</category>
    </action>

    <action id="RESTORE_VERSION" label="command.restore" link="#{versionedActions.restoreToVersion}" order="20">
      <category>VERSION_LIST_ITEM</category>
      <filter-id>canRestoreVersion</filter-id>
      <filter-id>canRestoreMainBlob</filter-id>
    </action>

    <action confirm="if( !confirmDeleteDocuments() ) return false;" id="CURRENT_VERSION_SELECTION_DELETE" label="command.removeSelectedArchivedVersions" link="#{versionedActions.removeSelectedArchivedVersions}" order="10">
      <category>CURRENT_VERSION_SELECTION_LIST</category>
      <filter-id>canDeleteCurrentVersionSelection</filter-id>
    </action>

  </extension>